package com.xmwzw.catpu.viewmodel;

import android.database.Observable;
import android.databinding.BaseObservable;
import android.databinding.BindingAdapter;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.xmwzw.catpu.R;

/**
 * @author : wangzw
 * @date : 20-3-31上午11:50
 * @desc :
 */
public class SoftViewModel extends BaseObservable {
    @BindingAdapter({"imageUrl"})
    public static void loadImage(ImageView imageView, String url){
        Glide.with(imageView.getContext()).load(url)
                .into(imageView);
    }
}
